let mongoose = require('mongoose');

// let schema = new mongoose.Schema({
// });

module.exports={
    async getOneNotice(){
        let NoticeModel=mongoose.models['Notice'];
        let notice=await NoticeModel.findOne({});
        if(!notice){
            notice={
                title:'泡泡大作战公告',
                content:'亲爱的玩家，大家好，欢迎大家来到泡泡大作战游戏！',
                aboutImageUrl:''
            }
        }
        return notice;
    }
};

// module.exports = schema;